# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=cagebreak
pkgver=2.2.3
pkgrel=0
pkgdesc="Wayland tiling compositor inspired by Ratpoison"
url="https://github.com/project-repo/cagebreak"
license="MIT"
arch="all"
options="!check" # no test suite
depends="xwayland"
makedepends="
	libevdev-dev
	meson
	pango-dev
	scdoc
	wayland-protocols
	wlroots-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/project-repo/cagebreak/archive/$pkgver.tar.gz"

build() {
	# defaults to debug build without buildtype=release
	abuild-meson \
		--buildtype=release \
		-Dman-pages=true \
		-Dxwayland=true \
		build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
d1815fe3eea87a8824d2181fa594226f8be23a04ae1bd3fb705a130953d88fba3d6355f4b37efcd2438adf720f421ccc4e0beb101e90d2636d8903ab5aea86ca  cagebreak-2.2.3.tar.gz
"
